package com.gqz.equip.app.enumEntity;

public enum QyEnum {
    QY("1", "启用"),
    TY("0", "停用");

    private String code;
    private String value;

    QyEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public String getCode() {
        return this.code;
    }

    public String getValue() {
        return this.value;
    }

    public static String getValue(String code) {
        for (QyEnum appraiseEnum : QyEnum.values()) {
            if (appraiseEnum.getCode().equals(code)) {
                return appraiseEnum.getValue();
            }
        }
        return code;
    }
}
